 package com.suozq.gc;

import java.lang.ref.PhantomReference;

/**
 * @author 锁战强
 * @date 2022/04/15
 */
public class GCTest {
    public static void main(String[] args) throws InterruptedException {
        byte[] allocation1, allocation2;
        allocation1 = new byte[30900*1024];
        Thread.sleep(5000);
        allocation2 = new byte[10*1024];
        Thread.sleep(5000000);
        PhantomReference pr = new PhantomReference(allocation1,null);
    }
}
